pow.webserver
Class SessionIvy

java.lang.Object
  extended by pow.webserver.SessionIvy

public class SessionIvy
extends java.lang.Object

store information about a specific ivy bus which is connected to the server

Author:
genin

Constructor Summary
SessionIvy(java.lang.String l, int w, AES c, java.net.InetAddress IvyAddr)
          create a session which store information about an ivy bus client connected to the server main information are its net address to send him orders from web users and drones which are connected to this ivy bus
 
Method Summary
 BusIvy_ getBusIvy()
           
 AES getCipher()
           
 java.net.InetAddress getIvyInetAddress()
           
 java.lang.String getLogin()
           
 int getWebId()
           
 void setBusIvy(BusIvy_ b)
          store the information of the ivy bus into the ivy session
 void setIvyInetAddress(java.net.InetAddress addr)
          set the ip adress of the ivy bus host
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SessionIvy

public SessionIvy(java.lang.String l,
                  int w,
                  AES c,
                  java.net.InetAddress IvyAddr)
           throws java.net.UnknownHostException
create a session which store information about an ivy bus client connected to the server main information are its net address to send him orders from web users and drones which are connected to this ivy bus

Parameters:
l - the login of the ivy user
w - the webid of the ivy bus
c - the cipher object
IvyAddr - the IP address of the ivy host machine
Throws:
java.net.UnknownHostException
Method Detail

getIvyInetAddress

public java.net.InetAddress getIvyInetAddress()
Returns:
the ip adress of the ivy bus

setIvyInetAddress

public void setIvyInetAddress(java.net.InetAddress addr)
set the ip adress of the ivy bus host


getCipher

public AES getCipher()
Returns:
the AES object which allows to encrypt and decrypt a message with

getBusIvy

public BusIvy_ getBusIvy()
Returns:
the object storing data about drones on the bus

setBusIvy

public void setBusIvy(BusIvy_ b)
store the information of the ivy bus into the ivy session

Parameters:
b - the ivy bus object

getWebId

public int getWebId()
Returns:
the ivy bus identifier

getLogin

public java.lang.String getLogin()
Returns:
the login of the user who is connected via this ivy bus